import axios from "axios";

export const request = axios.create({
    baseURL:'/api',
    timeout:5000
})

axios.interceptors.request.use((config)=>{
    return config
})

axios.interceptors.response.use((response)=>{
    return response.data
},(error)=>{
    return new Promise(error.message)
})